package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 捐赠记录对象 tb_record
 * 
 * @author ruoyi
 * @date 2024-04-23
 */
public class TbRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 社会捐赠项目id */
    @Excel(name = "社会捐赠项目名称")
    private String projectName;

    /** 社会捐赠项目id */
    @Excel(name = "社会捐赠项目id")
    private Long projectId;

    /** 会员id */
    @Excel(name = "会员id")
    private Long memberId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String memberNickname;

    /** 捐赠金额 */
    @Excel(name = "捐赠金额")
    private BigDecimal donationMoney;

    /** 捐赠时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "捐赠时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date donationTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }


    public void setProjectName(String projectName)
    {
        this.projectName = projectName;
    }

    public String getProjectName()
    {
        return projectName;
    }

    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }
    public void setMemberNickname(String memberNickname) 
    {
        this.memberNickname = memberNickname;
    }

    public String getMemberNickname() 
    {
        return memberNickname;
    }
    public void setDonationMoney(BigDecimal donationMoney) 
    {
        this.donationMoney = donationMoney;
    }

    public BigDecimal getDonationMoney() 
    {
        return donationMoney;
    }
    public void setDonationTime(Date donationTime) 
    {
        this.donationTime = donationTime;
    }

    public Date getDonationTime() 
    {
        return donationTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectId", getProjectId())
            .append("memberId", getMemberId())
            .append("memberNickname", getMemberNickname())
            .append("donationMoney", getDonationMoney())
            .append("donationTime", getDonationTime())
            .toString();
    }
}
